<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<title>配置信息</title>
	<link rel="stylesheet" href="/layui/css/layui.css">
	<style type="text/css">
		body{
			background: #e9e9e9;
		}
		/*公共头部带搜索*/
		.public_container{
			margin: 20px;
			background: #fff;
		}
		.public_title_container{
			height: 54px;
			padding: 0 20px;
			font-size: 14px;
			display: flex;
			align-items: center;
			background: #f9f9f9;
			border-bottom: 1px solid #f0f0f0;
		}
		/*公共表单部分*/
		.public_form_container{
			padding: 20px 20px 40px 20px;
		}
		.public_form_content{
			padding: 24px 40px 24px 0;
			background: #fafafa;
			border: 1px solid #e9e9e9;
			margin-bottom: 8px;
		}
		.public_form_List{
			margin-bottom: 10px;
		}
		.public_form_List:last-child{
			margin-bottom: 0px;
		}
		.public_formTitle_container lable{
			font-size: 13px;
			font-weight: bold;
		}

		/*顶部提示框 开始*/
		.public_tipSetting_contaienr{
			background: #e9e9e9;
			padding: 12px 0 0 0;
		}
		.public_tipSetting_content{
			display: flex;
			align-items: center;
			border: 1px solid #ffdda6;
			background: #fff2db;
			padding: 10px;
			margin: 0 20px;
		}
		.public_tipSetting_contaienr p{
			font-size: 14px;
			color: rgba(0,0,0,0.65);
		}
		.public_tipSetting_contaienr a{
			font-size: 14px;
			color: #1890ff;
		}
		.public_tipSetting_contaienr svg{
			margin-left: 5px;
			fill: #999;
			cursor: pointer;
		}
		/*顶部提示框 结束*/
	</style>
</head>
<body>
	<!-- 顶部提示框 开始 -->
	<div class="public_tipSetting_contaienr">
		<div class="public_tipSetting_content">
			<p>配置流失提醒后，被客户删除后，你都可以收到一条消息通知，方便及时追回客户。如配置遇到问题，可点击查看教程。</p>
			<a href="https://support.qq.com/products/174823/faqs/71342" target="_blank">查看教程</a>
			<svg t="1599462804099" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8813" width="15" height="15"><path d="M512 102.4a409.6 409.6 0 1 0 409.6 409.6 409.6 409.6 0 0 0-409.6-409.6z m181.248 518.144a51.2 51.2 0 0 1-72.704 72.704L512 584.192l-108.544 109.056a51.2 51.2 0 0 1-72.704-72.704L439.808 512 330.752 403.456a51.2 51.2 0 0 1 72.704-72.704L512 439.808l108.544-109.056a51.2 51.2 0 0 1 72.704 72.704L584.192 512z" fill="" p-id="8814"></path></svg>
		</div>
	</div>
	<!-- 顶部提示框 结束 -->
	<div class="public_container">

		<!-- /*公共头部带搜索*/ -->
		<div class="public_content">
			<div class="public_title_container">
				<p>应用配置信息</p>
			</div>
		</div>
		<div class="public_form_container">
			<form class="layui-form" id="form1">
			<div class="public_form_content">
				<div class="public_form_List">
					<div class="public_formTitle_container">
						<lable class="layui-form-label">应用ID：</lable>
					</div>
					<div class="public_formOther_container">
						<div class="layui-input-block">
							<input type="text" name="agent_id" value="{$config->agent_id}"  lay-verify="required" placeholder="请输入应用ID" autocomplete="off" class="layui-input">
						</div>
					</div>
				</div>
				<div class="public_form_List">
					<div class="public_formTitle_container">
						<lable class="layui-form-label">应用secret：</lable>
					</div>
					<div class="public_formOther_container">
						<div class="layui-input-block">
							<input type="text" name="secret" value="{$config->secret}"  lay-verify="required" placeholder="请输入应用secret" autocomplete="off" class="layui-input">
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<a class="layui-btn" lay-submit lay-filter="formDemo">提交</a>
						<button type="reset" class="layui-btn layui-btn-primary">重置</button>
					</div>
				</div>
			</div>
			</form>
		</div>
	</div>
	<script src="/layui/layui.js"></script>
	<script src="/js/ajax.js"></script>
	<script>
	//Demo
	layui.use('form', function(){
		var form = layui.form;

	  //监听提交
	  form.on('submit(formDemo)', function(data){
	  	//layer.msg(JSON.stringify(data.field));
	  	//return false;
		var formData = $('#form1').serialize();	
			myAjaxPost(false, true, '', formData, function (resp) {
				if (resp.status == 'success') {
					layer.msg(resp.msg, {
						  time: 500 //2秒关闭（如果不配置，默认是3秒）
						}, function(){
						  location.reload();
						});
				}else{
					alert(resp.msg);
				}
			});
	  });
	});
	$('.public_tipSetting_contaienr svg').click(function(){
			$('.public_tipSetting_contaienr').hide();
		})
	</script>
	<script src="/cdn/jquery.js"></script>
	<script type="text/javascript">
	
	</script>
</body>
</html>